<template>
  <div class="container">
    <div class="header">
      <div class="logo">
        <router-link to="/home"> <img src="../../../static/img/logo.png"></img></router-link>
      </div>
      <div class="min-nav">
        <a href="#" @click="openDialog('MyLogin')">登录</a> |
        <a href="#" @click="openDialog('MyRegister')">注册</a> |
        <a href="#" @click="openDialog('MyAbout')">关于</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BookstoreMyHeader',

  data() {
    return {

    };
  },

  mounted() {

  },

  methods: {
    openDialog(com) {
      this.$bus.$emit("showDialog", true)
      this.$emit("setCom", com)
    }
  },
};
</script>

<style scoped>

</style>
